package de.koller.worlders.engine.entity.deco;

import de.koller.worlders.WorldersRoot;
import de.koller.worlders.engine.tiles.ITile;
import de.koller.worlders.engine.tiles.data.ITileCreator;
import de.koller.worlders.render.VisualMap;
import de.koller.worlders.render.visual.DisplayRenderObject;

public class Gem extends Deco {
	public static final int GEN_ID = 5;
	
	public static final ITileCreator GEN_INSTANCE = new ITileCreator() {
		@Override public ITile newInstance() {
			return new Gem( 0.2f );
		}
		
		@Override public DisplayRenderObject getIcon() { return VisualMap.gem; }
		@Override public String getName() { return "Edelstein"; }
	};

	public Gem( float z ) {
		super( z );
	}

	@Override
	public void generate( WorldersRoot root, Object... references ) {
		super.generate( root, references );
		
		this.setVisual( VisualMap.gem );
	}

}
